#!/bin/bash
set -e

echo '<ol>'

for dir in $(cat .list |cut -f1); do

	echo '<li class="toggle_sub_list">'$dir'</li>'
	echo '<ul class="sub_list">'
		for fil in $(ls $dir); do
			echo '<li><a target="_blank" href="http://192.168.10.113:8000/.cnvsc/'$dir'/'$fil'">'$fil'</a></li>'
		done
	echo '</ul>'
done

echo '</ol>'
